package org.king2.blogs.pojo;

import lombok.Data;

/**
 * @author LuQi
 * @类描述
 * @时间 2021/12/13
 */
@Data
public class BLogsArticleWithBLOBsDef extends BLogsArticleWithBLOBs {

    private String authorName = "用已被注销";
    private String sourceStr;

    @Override
    public void setBlogsSource(Integer blogsSource) {
        super.setBlogsSource(blogsSource);
        if (blogsSource == 1) {
            sourceStr = "转载";
        } else if (blogsSource == 2) {
            sourceStr = "自创";
        } else if (blogsSource == 3) {
            sourceStr = "翻新";
        }
    }
}
